package com.up.vms.infrastructure.exception;

import com.up.vms.infrastructure.mvc.AbstractReturnCode;

public class BusinessException extends Exception {

    protected AbstractReturnCode returnCode;

    public AbstractReturnCode getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(AbstractReturnCode returnCode) {
        this.returnCode = returnCode;
    }

    public BusinessException(AbstractReturnCode returnCode) {
        this.returnCode = returnCode;
    }

    public BusinessException(AbstractReturnCode returnCode, String message) {
        this(message);
        this.returnCode = returnCode;
    }

    public BusinessException(String message) {
        super(message);
    }
}

